import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:largefriends/res/lf_color.dart';
import 'package:largefriends/res/lf_double_ext.dart';
import 'package:largefriends/res/lf_text_style.dart';

List<Widget> getEmailCells({required Function(String value) selected}) {
  return [
    "@hotmail.com",
    "@gmail.com",
    "@outlook.com",
    "@yahoo.com",
    "@icloud.com",
    "@aol.com",
    "@live.com"
  ]
      .map((element) => InkWell(
            child: Container(
              alignment: Alignment.center,
              margin:
                  const EdgeInsets.only(left: 5, right: 5, top: 5, bottom: 5),
              padding:
                  const EdgeInsets.only(left: 10, top: 5, bottom: 5, right: 10),
              decoration: BoxDecoration(
                  color: colorFF007F,
                  borderRadius: 6.r.radius),
              child: Text(
                element,
                style: lfTextStyle(
                  sp: 14,
                  color: colorFEFEFE,
                ),
              ),
            ),
            onTap: () {
              selected.call(element);
            },
          ))
      .toList();
}
